package cn.bone.sentinel.service.impl;

import cn.bone.sentinel.annotation.ApiImpl;
import cn.bone.sentinel.bean.CommonResult;
import cn.bone.sentinel.bean.Person;
import cn.bone.sentinel.bean.Ref;
import cn.bone.sentinel.service.IDemoService;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl implements IDemoService {

    @ApiImpl(value = "hello-impl")
    @Override
    public CommonResult<String> hello(Person person) {

        System.out.println(person);
        return Ref.ok(person.toString());
    }


    public CommonResult<String> test02(Integer id){

        return Ref.ok("ok");
    }
}
